package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤信息对象 sys_attendance
 * 
 * @author xyz
 * @date 2025-06-07
 */
public class SysAttendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID（关联 sys_user.user_id） */
    @Excel(name = "用户ID", readConverterExp = "关=联,s=ys_user.user_id")
    private Long userId;

    /** 用户名称（冗余，方便查询） */
    @Excel(name = "用户名称", readConverterExp = "冗=余，方便查询")
    private String userName;

    /** 工号 */
    @Excel(name = "工号")
    private String employeeId;

    /** 打卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "打卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date punchDate;

    /** 备用字段 aa */
    @Excel(name = "备用字段 aa")
    private String aa;

    /** 备用字段 bb */
    @Excel(name = "备用字段 bb")
    private String bb;

    /** 备用字段 cc */
    @Excel(name = "备用字段 cc")
    private String cc;

    /** 部门ID */
    private Long deptId;

    /** 开始日期（查询用） */
    private String startDate;

    /** 结束日期（查询用） */
    private String endDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setEmployeeId(String employeeId) 
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() 
    {
        return employeeId;
    }

    public void setPunchDate(Date punchDate) 
    {
        this.punchDate = punchDate;
    }

    public Date getPunchDate() 
    {
        return punchDate;
    }

    public void setAa(String aa) 
    {
        this.aa = aa;
    }

    public String getAa() 
    {
        return aa;
    }

    public void setBb(String bb) 
    {
        this.bb = bb;
    }

    public String getBb() 
    {
        return bb;
    }

    public void setCc(String cc) 
    {
        this.cc = cc;
    }

    public String getCc() 
    {
        return cc;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setStartDate(String startDate) 
    {
        this.startDate = startDate;
    }

    public String getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(String endDate) 
    {
        this.endDate = endDate;
    }

    public String getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("punchDate", getPunchDate())
            .append("aa", getAa())
            .append("bb", getBb())
            .append("cc", getCc())
            .append("deptId", getDeptId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .toString();
    }
}
